using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AjaxControlToolkit;

namespace AjaxControlToolkit.Models.MSTest
{
	
	public partial class ScriptUserControlTests
	{


		
		
    	[TestMethod]
		public void ScriptUserControlTests_DisposeTwice_HtmlTextWriterTag()
        {
			IDisposable objectUnderTest = new AjaxControlToolkit.ScriptUserControl(default(System.Web.UI.HtmlTextWriterTag));

			try
			{
				objectUnderTest = new AjaxControlToolkit.ScriptUserControl(default(System.Web.UI.HtmlTextWriterTag));
			}
			catch (ArgumentException)
			{
                return; //cannot continue test
			}

            objectUnderTest.Dispose();
            objectUnderTest.Dispose(); //second call should be a no-op 
		}
				
			
	}
}

